package com.wlz.property;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * wlz
 *
 * http://bat.ke.qq.com
 * 往期视频加群:516212256 暗号:6
 */
@Component
@ConfigurationProperties(prefix = "nio.endpoint")
public class NioEndpointProperties {

    private Integer maxThreads;
    private Integer connectTimeout;

    private String key;

    public Integer getMaxThreads() {
        return maxThreads;
    }

    public void setMaxThreads(Integer maxThreads) {
        this.maxThreads = maxThreads;
    }

    public Integer getConnectTimeout() {
        return connectTimeout;
    }

    public void setConnectTimeout(Integer connectTimeout) {
        this.connectTimeout = connectTimeout;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    @Override
    public String toString() {
        return "NioEndpointProperties{" +
                "maxThreads=" + maxThreads +
                ", connectTimeout=" + connectTimeout +
                ", key='" + key + '\'' +
                '}';
    }
}
